package com.cn.system.service;

import com.cn.system.domain.RoleDO;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Set;

@Service
public interface RoleService {

    RoleDO get(String id);

    List<RoleDO> list();

    int save(RoleDO role);

    int update(RoleDO role);

    int remove(String id);

    List<RoleDO> listUserRoles(String userId);

    int batchremove(String[] ids);

    Set<String> listUserRoleIds(String userId);
}
